package models

import "time"

type SciLiterature struct {
	Id            int       `orm:"auto"`
	Doi           string    `orm:"size(255)"`
	Rid           int       `orm:"size(11)"`
	Pii           string    `orm:"size(255)"`
	Pmid          int       `orm:"size(50)"`
	Title         string    `orm:"size(255)"` //varchar(255)
	Authors       string    `orm:"size(255);type(json)"`
	JournalName   string    `orm:"size(255)"`
	JournalTitle  string    `orm:"size(255)"`
	JournalVolume string    `orm:"size(255)"`
	JournalNumber string    `orm:"size(255)"`
	Issue         string    `orm:"size(255)"`
	Pages         string    `orm:"size(255)"`
	Eissn         string    `orm:"size(9)"`
	Issn          string    `orm:"size(9)"`
	PubDate       time.Time `orm:"auto_now_add;type(datetime)"`
	HasAbstract   uint      `orm:"size(1)"`
	PubType       string    `orm:"size(255)"`
	Keywords      string    `orm:"type(text)"`
	Abstract      string    `orm:"column(abstract);type(text)"`
	IsDeal        uint      `orm:"size(4)" description:"该数据是否被采集处理"`
}

func (u *SciLiterature) TableName() string {
	return "hz_sci_literature"
}

func (u *SciLiterature) TableEngine() string {
	return "INNODB"
}
